package com.lesso.lzh.sunflower.domain.repository;

import com.baomidou.mybatisplus.plugins.Page;
import com.lesso.lzh.sunflower.model.Device;
import com.lesso.lzh.sunflower.pojo.dto.DeviceDTO;
import com.lesso.lzh.sunflower.pojo.dto.DeviceQueryDTO;
import com.lesso.lzh.sunflower.pojo.vo.DeviceVO;

/**
 * DeviceRepository
 *
 * @author zqz
 * @since 2025-07-04
 */
public interface DeviceRepository {
    Long save(Device device);

    Page<DeviceVO> getPageList(DeviceQueryDTO dto);

    Page<DeviceVO> getCustomPageList(DeviceQueryDTO dto);

    void removeById(Long id);

    Device selectById(Long id);

    Integer update(DeviceDTO dto);
}